package com.erb.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 贷款信息
 */
public class Loan {
	private Integer lid;
	private int uid; //用户id
	private int applyid;
	private String loanname; //真实姓名
	private Integer maxage;//借款人年龄
	private String phone;//借款人电话
	private String idcard; //本身身份证
	private String address;//详细地址
	private String work;//工作单位
	private String workaddress;//工作单位所在地址
	private String monthmoney;//月收入
	private double money;//借款金额
	private String loanuse;//借款用途
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date loanstartdate;//借款时间
	private int loandate;//借款期限
	private String loaninterest; //利率
	private int loanstate;//借款状态
	private String loantype;//借款类型
	private String prove;//抵押物
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date loanpaydate;//上期还款时间
	private float repayment;//以还金额


	public Date getLoanpaydate() {
		return loanpaydate;
	}

	public void setLoanpaydate(Date loanpaydate) {
		this.loanpaydate = loanpaydate;
	}

	public int getApplyid() {
		return applyid;
	}

	public void setApplyid(int applyid) {
		this.applyid = applyid;
	}

	public String getWork() {
		return work;
	}

	public void setWork(String work) {
		this.work = work;
	}

	public String getWorkaddress() {
		return workaddress;
	}

	public void setWorkaddress(String workaddress) {
		this.workaddress = workaddress;
	}

	public String getProve() {
		return prove;
	}

	public void setProve(String prove) {
		this.prove = prove;
	}

	public float getRepayment() {
		return repayment;
	}

	public void setRepayment(float repayment) {
		this.repayment = repayment;
	}

	public void setRepayment(int repayment) {
		this.repayment = repayment;
	}

	public String getLoantype() {
		return loantype;
	}

	public void setLoantype(String loantype) {
		this.loantype = loantype;
	}

	public Date getLoanstartdate() {
		return loanstartdate;
	}

	public void setLoanstartdate(Date loanstartdate) {
		this.loanstartdate = loanstartdate;
	}

	public Integer getLid() {
		return lid;
	}

	public void setLid(Integer lid) {
		this.lid = lid;
	}

	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	public String getLoanname() {
		return loanname;
	}

	public void setLoanname(String loanname) {
		this.loanname = loanname;
	}

	public Integer getMaxage() {
		return maxage;
	}

	public void setMaxage(Integer maxage) {
		this.maxage = maxage;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getIdcard() {
		return idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getMonthmoney() {
		return monthmoney;
	}

	public void setMonthmoney(String monthmoney) {
		this.monthmoney = monthmoney;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public String getLoanuse() {
		return loanuse;
	}

	public void setLoanuse(String loanuse) {
		this.loanuse = loanuse;
	}

	public int getLoandate() {
		return loandate;
	}

	public void setLoandate(int loandate) {
		this.loandate = loandate;
	}

	public String getLoaninterest() {
		return loaninterest;
	}

	public void setLoaninterest(String loaninterest) {
		this.loaninterest = loaninterest;
	}

	public int getLoanstate() {
		return loanstate;
	}

	public void setLoanstate(int loanstate) {
		this.loanstate = loanstate;
	}
}
